//
//  UtilHeader.h
//  TraderMobileKYi
//
//  Created by shijiezhao on 10/6/17.
//  Copyright © 2017年 com.yeezsoft.init. All rights reserved.
//

#ifndef UtilHeader_h
#define UtilHeader_h


#endif /* UtilHeader_h */


#ifdef DEBUG
    //do sth.
#define KDebugStatus 1
#else
    //do sth.
#define KDebugStatus 0
#endif


// 短信验证码的有限时间
#define VerificationTimeLong 60

//  请求等待时间
#define RequestWaitTimeLong 30


//  定时器刷新行情数据时间
#define RequestQuoteTimeLong 3




//  客服电话
#define ServiceMoblie   @""
//  app在appstore的id
#define APPStoreId @""





#pragma mark --------------屏幕宽高--------------
//  屏幕宽高
#define KScreenWidth [UIScreen mainScreen].bounds.size.width
#define KScreenHeight [UIScreen mainScreen].bounds.size.height


#define KStatusBarHeight                    (KIsiPhoneX ? 44:20)
#define KNavigationBarAndStatusBarHeight           (KIsiPhoneX ? 88:64)
#define KTabBarHeight           (KIsiPhoneX ? 83:49)
#define KBottomSurplusHeight           (KIsiPhoneX ? (83-49):0)




//判断是否是iphoneX屏幕
#define KIsiPhoneX    ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO) || ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242, 2688), [[UIScreen mainScreen] currentMode].size) : NO) || ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1624), [[UIScreen mainScreen] currentMode].size) : NO) || ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(828, 1792), [[UIScreen mainScreen] currentMode].size) : NO) || ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)




//  判断是否是审核版本
#define APP_IsExamine    NO//[EBMUserSingle shareUserSingle].isExamine



//  获取image对象
#define KImage(imageName) [UIImage imageNamed:imageName]


//  window对象
#define KWindow [[UIApplication sharedApplication].delegate window]


//  用户对象
#define KUserSinge  [EBMUserSingle gainWeakUserSingle]
#define KUserSingeIsLogin  [[EBMUserSingle gainWeakUserSingle] isLogin]

//  没有登录就直接结束
#define KUserSingeNoLoginReturn  if(!KUserSingeIsLogin){return;}
//  没有登录就直接去登录
#define KUserSingeNoLoginGoLogin(Viewcontroller) if(!KUserSingeIsLogin){[EBMLoginMethod naviagtionEnterLoginVCWithVC:Viewcontroller loginSuccessBlock:nil];return;}

